﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyWeb.Data;
using System.Data;

namespace MyWeb.Business
{
    public class ProvinceService
    {
        public static ProvinceController db = new ProvinceController();

        #region[Province_Insert]
        public void Province_Insert(ProvinceInfo data)
        {
            db.Province_Insert(data);
        }
        #endregion

        #region[Province_Update]
        public void Province_Update(ProvinceInfo data)
        {
            db.Province_Update(data);
        }
        #endregion

        #region[Province_Delete]
        public void Province_Delete(string Id)
        {
            db.Province_Delete(Id);
        }
        #endregion

        #region[Province_GetByAll]
        public DataTable Province_GetByAll()
        {
            return db.Province_GetByAll();
        }
        #endregion

        #region[Province_GetById]
        public DataTable Province_GetById(string Id)
        {
            return db.Province_GetById(Id);
        }
        #endregion

        #region[Province_GetByTop]
        public DataTable Province_GetByTop(string Top, string Where, string Order)
        {
            return db.Province_GetByTop(Top, Where, Order);
        }
        #endregion
    }
}
